//
//  JLButtonTabBarButton.m
//  LIangeNews
//
//  Created by sun on 16/1/14.
//  Copyright © 2016年 sun. All rights reserved.
//

#import "JLButtonTabBarButton.h"
#import "UIView+Frame.h"
@implementation JLButtonTabBarButton

-(void)setHighlighted:(BOOL)highlighted{
    
}
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        self.imageView.contentMode = UIViewContentModeCenter;
        self.titleLabel.font = [UIFont systemFontOfSize:13];
    }
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    self.imageView.frame = CGRectMake(0, 0, self.width, 28);
    self.titleLabel.frame = CGRectMake(0, CGRectGetMaxY(self.imageView.frame), self.width, 16);
}
@end
